package org.cyb.demo.dao;

import org.apache.ibatis.annotations.Param;
import org.cyb.demo.domain.Chapter;
import org.cyb.demo.domain.Course;
import org.cyb.demo.domain.Section;
import org.cyb.demo.domain.Video;

import java.util.List;

public interface VideoMapper {
    int insert(
            @Param("video")Video video,
            @Param("section")Section section
    );

    void delete(
            @Param("video")Video video
    );

    void update(
            @Param("video")Video video
    );

    List<Video> selectByName(
            @Param("video")Video video
    );

    List<Video> selectAll();

    Video selectOneByName(
            @Param("video")Video video
    );
}
